// Load on demand

import {
  Avatar,
  Button,
  Checkbox,
  Col,
  ConfigProvider,
  Dropdown,
  Form,
  Input,
  InputNumber,
  Layout,
  Menu,
  Modal,
  Radio,
  Row,
  Select,
  Spin,
  Switch,
  Table,
  Tabs,
  Tag,
  TreeSelect,
  Upload
} from "ant-design-vue"
import "ant-design-vue/dist/antd.css"
import type { App } from "vue"

export function setupAntd(app: App<Element>) {
  // need
  // Here are the components required before registering and logging in
  app
    .use(Form)
    .use(Input)
    .use(Row)
    .use(Select)
    .use(Button)
    .use(Col)
    .use(Layout)
    .use(Spin)
    .use(Menu)
    .use(ConfigProvider)
    .use(Tabs)
    .use(Checkbox)
    .use(Table)
    .use(Avatar)
    .use(Dropdown)
    .use(Tag)
    .use(Modal)
    .use(Radio)
    .use(Upload)
    .use(Switch)
    .use(InputNumber)
    .use(TreeSelect)
}
